//
//  ViewController.m
//  RequestDemo
//
//  Created by 吴仁辉 on 2018/4/29.
//  Copyright © 2018年 com.cn.cheyoo.www. All rights reserved.
//

#import "ViewController.h"
#import "Person.h"
#import "subPerson.h"
#import "Student.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIButton*but=[[UIButton alloc]initWithFrame:CGRectMake(100, 100, 100, 100)];
    but.backgroundColor=[UIColor redColor];
    [but addTarget:self action:@selector(buttonClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:but];
}

-(void)buttonClick{
    Student*st=[[Student alloc]init];
    st.like=1;
    st.type=@"student";//subPerson
    st.name=@"jack";//person
    RequestModel*model =  [[RequestModel alloc]init];;//subPerson
//    model.request1=@"3";
    model.time=1234;
    model.request2= 3;
    model.strData= [@"1234" dataUsingEncoding:NSUTF8StringEncoding];//忽略数组
    st.model=model;
    NSDictionary*dict2 =    [st getDictFrommemberList];
    NSLog(@"dict2 --%@",dict2);
}


@end
